<?php defined('IN_IA') or exit('Access Denied');?><?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('public/header', TEMPLATE_INCLUDEPATH)) : (include template('public/header', TEMPLATE_INCLUDEPATH));?>

<?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('public/comhead', TEMPLATE_INCLUDEPATH)) : (include template('public/comhead', TEMPLATE_INCLUDEPATH));?>
<link rel="stylesheet" type="text/css" href="../addons/yzzc_sun/template/public/ygcsslist.css">
<style type="text/css">
</style>
<ul class="nav nav-tabs">
    <span class="ygxian"></span>
    <div class="ygdangq">当前位置:</div>
    <li class="active"><a href="javascript:void(0);"><?php  if($type==1) { ?>租车券明细<?php  } else { ?> 优惠券明细<?php  } ?></a></li>
    <li  <?php  if($check=='all' ) { ?> class="active" <?php  } ?>><a href="<?php  echo $this->createWebUrl('coupondetails',array('check'=>'all','type'=>$type,'uid'=>$uid));?>">全部</a></li>
    <li   <?php  if($check=='use') { ?> class="active" <?php  } ?>><a href="<?php  echo $this->createWebUrl('coupondetails',array('check'=>'use','type'=>$type,'uid'=>$uid));?>">已使用</a></li>
    <li   <?php  if($check=='nouse') { ?> class="active" <?php  } ?>><a href="<?php  echo $this->createWebUrl('coupondetails',array('check'=>'nouse','type'=>$type,'uid'=>$uid));?>">未使用</a></li>
</ul>

<div class="row ygrow">
    <form action="" method="get" class="col-md-4">
        <input type="hidden" name="c" value="site" />
        <input type="hidden" name="a" value="entry" />
        <input type="hidden" name="m" value="yzzc_sun" />
        <input type="hidden" name="do" value="<?php  echo $type;?>" />

        <input type="hidden" name="token" value="<?php  echo $_W['token'];?>"/>

    </form>
</div>
<div class="main">
    <div class="panel panel-default">

        <div class="panel-heading">
            <?php  if($type==1) { ?>租车券明细<?php  } else { ?> 优惠券明细<?php  } ?>
        </div>

        <div class="panel-body" style="padding: 0px 15px;">

            <div class="row">

                <table class="yg5_tabel col-md-12">
                    <tr class="yg5_tr1">
                        <td class="col-md-1">用户id</td>
                        <td class="col-md-1">名称</td>
                        <td class="col-md-1">领取时间</td>
                        <td class="col-md-1">使用时间</td>
                        <!--<td class="col-md-2">操作</td>-->
                    </tr>

                    <?php  if(is_array($list)) { foreach($list as $row) { ?>

                    <tr class="yg5_tr2">

                        <td ><?php  echo $row['uid'];?></td>
                        <td><?php  echo $row['name'];?></td>
                        <td><?php  echo $row['createtime'];?></td>
                        <?php  if($row['isuse'] == 0) { ?>  <td>未使用</td>
                        <?php  } else if($row['isuse'] == 1) { ?><td><?php  echo $row['usetime'];?></td>
                        <?php  } ?>
                    </tr>
                    <?php  } } ?>
                    <?php  if(empty($list)) { ?>
                    <tr class="yg5_tr2">
                        <td colspan="12">
                            暂无信息
                        </td>
                    </tr>
                    <?php  } ?>
                </table>

            </div>

        </div>

    </div>

</div>

<div class="text-right we7-margin-top">

    <?php  echo $pager;?>

</div>





<script>
    $(function() {
        $("#frame-11").show();
        $("#yframe-11").addClass("wyactive");
    })
</script>

